package cn.hanna.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author smileha
 * @create 2021-10-17 10:04
 * @description
 */
@RestController
public class PaymentCSController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/payment/consul")
    public String paymentConsul(){
        return "访问成功，访问端口为:" + serverPort + "uuid" + UUID.randomUUID().toString().replaceAll("-",".");
    }
}
